#pragma once

#include <fstream>
#include <boost/tokenizer.hpp>
#include "SQLSystem.h"
#include "Command.h"
#include "Helper.h"

#include "InsertCommand.h"
#include "DeleteCommand.h"
#include "SelectCommand.h"
#include "VarcharCell.h"
#include "IntCell.h"
#include "Row.h"


using namespace boost;
using std::ifstream;

class LogCommand :
	public Command
{
public:
	LogCommand(SQLSystem* sql);
	~LogCommand(void);
	virtual int execute(const string &str);
	int insertLog(const string &str);
	int deleteLog(const string &str);
	int searchLog(const string &str);
	void search(const string &path, const string &content);
	int sortLog(const string &str);
	Helper* helper;
};

